﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load( object sender, EventArgs e )
    {
        //新的封装
//         GridView1.DataSource = TestDBOp.getresult("SMT",new Object[] {"@UserName","@PassWord"},new Object[]{"sunwei","sunwei2321"},"select * from Account where UserName=@UserName and Password=@PassWord");
//         GridView1.DataBind();
        OpLoginQuery test = new OpLoginQuery("SMT", new TestOldtoNew("sunwei", "sunwei2321"));
        test.Do();
        GridView1.DataSource = test.Ds;
        GridView1.DataBind();
     }
}
